package bma.common.thrift.ai;

import java.util.concurrent.Executors;

import bma.common.langutil.ai.vm.AIContext;
import bma.common.langutil.ai.vm.AIContextJava;

public class TAIBaseFaceImpl {

	protected AIContext context;

	public AIContext getContext() {
		return context;
	}

	public void setContext(AIContext context) {
		this.context = context;
	}

	public AIContext sureContext() {
		if (context == null) {
			context = new AIContextJava(Executors.newSingleThreadExecutor());
		}
		return context;
	}

}
